<?php
namespace App\Models;

use App\Models;
use Illuminate\Support\Facades\Request;
class Log
{
    const data=[
        '1'=>'注册',
        '2'=>'登录',
        '3'=>'详情'
    ];

    public static function LogData()
    {
        $data = self::data['2'];
        $model = new Log();
        $res = $model->LogData($data);

        if($res)
        {
            return ['code'=>0,'msg'=>'日志入库成功','res'=>$res];
        }else{
            return ['code'=>1,'msg'=>'日志入库失败','res'=>$res];
        }
    }
}